﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.SAResponseViewModel>" %>
<%@ Import Namespace="dbPoll_Application.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SendSAResponse
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="pageHeadingContainer"><h2 class="pageHeading">SAResponse</h2></div>
    <div id="contentContainer">
    <p>Question: <%= Model.question.question%></p>
    <% using (Html.BeginForm("SaveSAResponse", "Respond", FormMethod.Post))
       { %>
       <%= Html.HiddenFor(model => model.question.questionID)%>
    <table>
	    <tr>
	    <td align="right"><label for="SAResponse">Short Answer Response:</label></td>
	    <td><%= Html.TextAreaFor(model => model.response)%></td>
	    <td><span><%= Html.ValidationMessageFor(model => model.response)%></span></td>
	    </tr>  
	    <tr>
	    <td align="right"><label for="SAResponse">Feedback:</label></td>
	    <td><%= Html.TextAreaFor(model => model.feedback)%></td>
	    <td><span><%= Html.ValidationMessageFor(model => model.feedback)%></span></td>
	    </tr> 	      
        <tr>
	    <td></td>
	    <td><input type="submit" name="Respond" value="Respond" /></td>
	    <td></td>
	    </tr>
    </table>
     <%= Html.ValidationSummary(true)%>
     <% } %>
    </div>
       
</asp:Content>
